package com.webdiy.hr.action;

import com.sys.plat.web.core.ActionContext;
import com.sys.plat.web.core.BaseAction;
import com.webdiy.hr.form.SendEmailForm;
import com.webdiy.hr.iface.SendEmailSerice;

/**
 * Created by IntelliJ IDEA.
 * User: mabo
 * Date: 2010-2-19
 * Time: 22:53:53
 * To change this template use File | Settings | File Templates.
 */
public class SendEmailAction extends BaseAction{


    private SendEmailSerice getService() {
        return (SendEmailSerice) getService("SendEmailSericeImpl");
    }

    private SendEmailForm getForm() {
        return (SendEmailForm) ActionContext.getForm();
    }


    public void sendEmailByExt() {
        getService().sendEmail(getForm().getHc().getId());
    }
}
